/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Putra
 */
public class MeanUniform implements Mean{
    ParameterUniform parameter;
    public MeanUniform(ParameterUniform parameter){
        this.parameter = parameter;
        System.out.println("Rata-rata Distribusi Uniform = "+getMean());
    }

    @Override
    public double getMean() {
        return (parameter.a+parameter.b)/2;
    }
    
}
